package com.bayern.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * IpSegment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ip_segment", catalog = "remote_video")
public class IpSegment implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = 1L;
	private String ipStart;
	private String ipEnd;
	private Long ipStartNumber;
	private Long ipEndNumber;
	private String country;
	private String countryId;
	private String area;
	private String areaId;
	private String region;
	private String regionId;
	private String city;
	private String cityId;
	private String county;
	private String countyId;
	private String isp;
	private String ispId;

	// Constructors

	/** default constructor */
	public IpSegment() {
	}

	/** minimal constructor */
	public IpSegment(String ipStart, String ipEnd, Long ipStartNumber,
			Long ipEndNumber) {
		this.ipStart = ipStart;
		this.ipEnd = ipEnd;
		this.ipStartNumber = ipStartNumber;
		this.ipEndNumber = ipEndNumber;
	}

	/** full constructor */
	public IpSegment(String ipStart, String ipEnd, Long ipStartNumber,
			Long ipEndNumber, String country, String countryId, String area,
			String areaId, String region, String regionId, String city,
			String cityId, String county, String countyId, String isp,
			String ispId) {
		this.ipStart = ipStart;
		this.ipEnd = ipEnd;
		this.ipStartNumber = ipStartNumber;
		this.ipEndNumber = ipEndNumber;
		this.country = country;
		this.countryId = countryId;
		this.area = area;
		this.areaId = areaId;
		this.region = region;
		this.regionId = regionId;
		this.city = city;
		this.cityId = cityId;
		this.county = county;
		this.countyId = countyId;
		this.isp = isp;
		this.ispId = ispId;
	}

	// Property accessors
	@Id
	@Column(name = "ip_start", unique = true, nullable = false, length = 15)
	public String getIpStart() {
		return this.ipStart;
	}

	public void setIpStart(String ipStart) {
		this.ipStart = ipStart;
	}

	@Column(name = "ip_end", nullable = false, length = 15)
	public String getIpEnd() {
		return this.ipEnd;
	}

	public void setIpEnd(String ipEnd) {
		this.ipEnd = ipEnd;
	}

	@Column(name = "ip_start_number", nullable = false)
	public Long getIpStartNumber() {
		return this.ipStartNumber;
	}

	public void setIpStartNumber(Long ipStartNumber) {
		this.ipStartNumber = ipStartNumber;
	}

	@Column(name = "ip_end_number", nullable = false)
	public Long getIpEndNumber() {
		return this.ipEndNumber;
	}

	public void setIpEndNumber(Long ipEndNumber) {
		this.ipEndNumber = ipEndNumber;
	}

	@Column(name = "country", length = 100)
	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	@Column(name = "country_id", length = 20)
	public String getCountryId() {
		return this.countryId;
	}

	public void setCountryId(String countryId) {
		this.countryId = countryId;
	}

	@Column(name = "area", length = 100)
	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	@Column(name = "area_id", length = 20)
	public String getAreaId() {
		return this.areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	@Column(name = "region", length = 100)
	public String getRegion() {
		return this.region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	@Column(name = "region_id", length = 20)
	public String getRegionId() {
		return this.regionId;
	}

	public void setRegionId(String regionId) {
		this.regionId = regionId;
	}

	@Column(name = "city", length = 100)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "city_id", length = 20)
	public String getCityId() {
		return this.cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	@Column(name = "county", length = 100)
	public String getCounty() {
		return this.county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	@Column(name = "county_id", length = 20)
	public String getCountyId() {
		return this.countyId;
	}

	public void setCountyId(String countyId) {
		this.countyId = countyId;
	}

	@Column(name = "isp", length = 100)
	public String getIsp() {
		return this.isp;
	}

	public void setIsp(String isp) {
		this.isp = isp;
	}

	@Column(name = "isp_id", length = 20)
	public String getIspId() {
		return this.ispId;
	}

	public void setIspId(String ispId) {
		this.ispId = ispId;
	}

}